/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/26 15:41:10
 */
Ext.define('Monkey.store.role.Role', {
    extend: 'Monkey.store.BaseStore',
    alias: 'store.role',

    autoLoad: true,
    model: 'Monkey.model.role.Role',
    proxy: {
        type: 'ajax',
        pageParam: 'page.pn',
        limitParam: 'page.size',
        url: Monkey.URL.SERVER_URL + "/m/roles.json",
        extraParams: {
            fields: 'id,name,role,description'
        },
        reader: {
            type: 'json',
            totalProperty: 'data.totalAmount',
            rootProperty: 'data.elements'
        }
    }
});